Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Add integration doc for inactive validators #2133

Merged
merged 6 commits into from
Aug 13, 2024

Conversation

p-offtermatt
Copy link
Contributor

@p-offtermatt p-offtermatt commented Aug 8, 2024

Description

Closes: #XXXX

Improve docs for inactive vals, aimed at integrators.

We will link to these as part of an outreach to block explorers, wallets, staking platforms, and other integrators.

Please review the docs locally to see how this looks on the web:

make build-docs-local

In particular, interested in opinions on where this page should be (is it ok under Upgrading, should there be an extra section called Integration; other ideas on where it could be?)


Author Checklist

All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.

I have...

  • included the correct docs: prefix in the PR title
  • targeted the correct branch (see PR Targeting)
  • provided a link to the relevant issue or specification
  • reviewed "Files changed" and left comments if necessary
  • confirmed all CI checks have passed

Reviewers Checklist

All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.

I have...

  • Confirmed the correct docs: prefix in the PR title
  • Confirmed all author checklist items have been addressed
  • Confirmed that this PR only changes documentation
  • Reviewed content for consistency
  • Reviewed content for spelling and grammar
  • Tested instructions (if applicable)
  • Checked that the documentation website can be built and deployed successfully (run make build-docs)

Summary by CodeRabbit

Summary by CodeRabbit

  • New Features
    • Introduced a detailed integration guide for the inactive validators feature, enhancing participation in Interchain Security.
    • Clarified the distinction between bonded and active validators, including implications for rewards and governance.
    • Updated information on query changes, specifically regarding the bonded_tokens reflecting all bonded validators.
    • Added a new "Integrators Guide" to improve documentation organization and accessibility.

@p-offtermatt p-offtermatt requested a review from a team as a code owner August 8, 2024 06:52
Copy link
Contributor

coderabbitai bot commented Aug 8, 2024

Walkthrough

Walkthrough

The recent changes enable inactive validators to participate in validating transactions on consumer chains within the Interchain Security framework. This is achieved by adjusting parameters to increase validator participation while maintaining the integrity of the consensus process. The documentation clarifies the roles of bonded and active validators, detailing their eligibility for rewards and governance involvement.

Changes

File Path Change Summary
docs/docs/upgrading/integrating_inactive_validators.md Introduced a guide for integrating inactive validators, detailing new parameters and implications for validator participation and governance.
docs/docs/adrs/category.json Modified the position of the "ADRs" label in the JSON configuration file to reorder elements in the documentation hierarchy.
docs/docs/frequently-asked-questions.md Updated the sidebar position attribute in the FAQ document metadata to affect its display order in navigation.
docs/docs/integrators/category.json Created a new JSON configuration file for the "Integrators Guide," enhancing documentation organization and accessibility.
docs/docs/integrators/integrating_inactive_validators.md Launched a guide on integrating inactive validators, explaining technical implementations and the distinctions between bonded and active validators.

Possibly related issues


Recent review details

Configuration used: .coderabbit.yml
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 7c8f9a2 and 4bbabb4.

Files selected for processing (1)
  • docs/docs/integrators/integrating_inactive_validators.md (1 hunks)
Additional context used
LanguageTool
docs/docs/integrators/integrating_inactive_validators.md

[style] ~7-~7: This phrase is redundant. Consider using “outside”.
Context: ...ing-inactive-validators.md), validators outside of the active set on the provider chain ca...

(OUTSIDE_OF)

Markdownlint
docs/docs/integrators/integrating_inactive_validators.md

27-27: null
Bare URL used

(MD034, no-bare-urls)


27-27: null
Files should end with a single newline character

(MD047, single-trailing-newline)


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@github-actions github-actions bot added the C:Docs Assigned automatically by the PR labeler label Aug 8, 2024
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Outside diff range, codebase verification and nitpick comments (4)
docs/docs/upgrading/integrating_inactive_validators.md (4)

7-7: Refine for Conciseness.

The phrase "outside of" is redundant. Consider using "outside" for conciseness.

- validators outside of the active set
+ validators outside the active set
Tools
LanguageTool

[style] ~7-~7: This phrase is redundant. Consider using “outside”.
Context: ...ing-inactive-validators.md), validators outside of the active set on the provider chain ca...

(OUTSIDE_OF)


19-23: Adjust Heading Level.

The heading level for /cosmos/staking/v1beta1/pool should be adjusted to H2 for consistency.

- ### `/cosmos/staking/v1beta1/pool`
+ ## `/cosmos/staking/v1beta1/pool`
Tools
Markdownlint

21-21: Expected: h2; Actual: h3
Heading levels should only increment by one level at a time

(MD001, heading-increment)


27-27: Format Bare URL as a Link.

The bare URL should be formatted as a hyperlink for better readability.

- query the validator set from Tendermint (https://docs.cometbft.com/v0.37/rpc/#/Info/validators)
+ query the validator set from Tendermint [here](https://docs.cometbft.com/v0.37/rpc/#/Info/validators)
Tools
Markdownlint

27-27: null
Bare URL used

(MD034, no-bare-urls)


27-27: null
Files should end with a single newline character

(MD047, single-trailing-newline)


27-27: Add Newline at End of File.

Ensure the file ends with a single newline character for consistency with Markdown standards.

+ 
Tools
Markdownlint

27-27: null
Bare URL used

(MD034, no-bare-urls)


27-27: null
Files should end with a single newline character

(MD047, single-trailing-newline)

@insumity
Copy link
Contributor

insumity commented Aug 8, 2024

The right side of the page looks peculiar because it just shows the /cosmos/staking/v1beta1/pool and All queries in the staking module that return a Validator as sections:
page

Having this under Upgrading might be easily missed. I wonder if it would make sense to have a new section called "Integrators Guide" that would contain the always-up-to-date information for block explorers, etc.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 4

docs/docs/upgrading/integrating_inactive_validators.md Outdated Show resolved Hide resolved
docs/docs/upgrading/integrating_inactive_validators.md Outdated Show resolved Hide resolved
docs/docs/upgrading/integrating_inactive_validators.md Outdated Show resolved Hide resolved
@p-offtermatt
Copy link
Contributor Author

Thanks for the feedback, I have made an extra section called "Integrators Guide"

@github-actions github-actions bot added the C:ADR Assigned automatically by the PR labeler label Aug 8, 2024
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Outside diff range, codebase verification and nitpick comments (3)
docs/docs/integrators/integrating_inactive_validators.md (3)

7-7: Refine phrasing for clarity.

Consider simplifying the phrase "outside of the active set" to "outside the active set" for clarity.

- validators outside of the active set
+ validators outside the active set
Tools
LanguageTool

[style] ~7-~7: This phrase is redundant. Consider using “outside”.
Context: ...ing-inactive-validators.md), validators outside of the active set on the provider chain ca...

(OUTSIDE_OF)


27-27: Avoid using bare URLs.

Consider embedding the URL within a Markdown link for better readability.

- query the validator set from Tendermint (https://docs.cometbft.com/v0.37/rpc/#/Info/validators or `query comet-validator-set [height]`)
+ query the validator set from Tendermint ([Tendermint RPC](https://docs.cometbft.com/v0.37/rpc/#/Info/validators) or `query comet-validator-set [height]`)
Tools
Markdownlint

27-27: null
Bare URL used

(MD034, no-bare-urls)


27-27: null
Files should end with a single newline character

(MD047, single-trailing-newline)


27-27: Ensure the file ends with a single newline character.

Add a newline character at the end of the file to adhere to Markdown best practices.

+ 
Tools
Markdownlint

27-27: null
Bare URL used

(MD034, no-bare-urls)


27-27: null
Files should end with a single newline character

(MD047, single-trailing-newline)

@p-offtermatt p-offtermatt enabled auto-merge August 13, 2024 08:17
@p-offtermatt p-offtermatt added this pull request to the merge queue Aug 13, 2024
@p-offtermatt p-offtermatt removed this pull request from the merge queue due to a manual request Aug 13, 2024
@p-offtermatt p-offtermatt enabled auto-merge August 13, 2024 08:55
@p-offtermatt p-offtermatt added this pull request to the merge queue Aug 13, 2024
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Outside diff range, codebase verification and nitpick comments (3)
docs/docs/integrators/integrating_inactive_validators.md (3)

7-7: Consider using “outside” instead of “outside of.”

This phrase is redundant. Consider simplifying it for clarity.

- validators outside of the active set
+ validators outside the active set
Tools
LanguageTool

[style] ~7-~7: This phrase is redundant. Consider using “outside”.
Context: ...ing-inactive-validators.md), validators outside of the active set on the provider chain ca...

(OUTSIDE_OF)


27-27: Format the bare URL properly.

Consider using Markdown syntax to improve readability.

- query the validator set from Tendermint (https://docs.cometbft.com/v0.37/rpc/#/Info/validators or `query comet-validator-set [height]`)
+ query the validator set from Tendermint ([Tendermint RPC](https://docs.cometbft.com/v0.37/rpc/#/Info/validators) or `query comet-validator-set [height]`)
Tools
Markdownlint

27-27: null
Bare URL used

(MD034, no-bare-urls)


27-27: null
Files should end with a single newline character

(MD047, single-trailing-newline)


27-27: Ensure file ends with a single newline character.

Files should end with a single newline character for consistency.

- query comet-validator-set [height]`), which will return the set of all *active* validators.
+ query comet-validator-set [height]`), which will return the set of all *active* validators.\n
Tools
Markdownlint

27-27: null
Bare URL used

(MD034, no-bare-urls)


27-27: null
Files should end with a single newline character

(MD047, single-trailing-newline)

Merged via the queue into main with commit 485c37c Aug 13, 2024
12 checks passed
@p-offtermatt p-offtermatt deleted the ph/inactive-vals-docs branch August 13, 2024 09:54
@p-offtermatt p-offtermatt linked an issue Sep 17, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C:ADR Assigned automatically by the PR labeler C:Docs Assigned automatically by the PR labeler
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inactive validators: Update docs
3 participants